<template>
  <div class="home">
    <div class="headers">
      <div class="headers-main">
        <Header></Header>
        <ly-tab v-model="selectedId" :items="items" :options="options">
        </ly-tab>
      </div>
    </div>

    <section>
      <Swiper></Swiper>
      <Icons></Icons>
      <Recommend></Recommend>
      <Like></Like>
      <Ad></Ad>
    </section>
    <Tabbar></Tabbar>
  </div>
</template>

<script>
import Header from "@/components/home/Header.vue";
import Tabbar from "@/components/common/Tabbar.vue";
import Swiper from "@/components/home/Swiper.vue";
import Icons from "@/components/home/Icons.vue";
import Recommend from "@/components/home/Recommend.vue";
import Like from '@/components/home/Like.vue'
import Ad from '@/components/home/Ad.vue'

export default {
  name: "Home",
  data() {
    return {
      selectedId: 0,
      items: [
        { label: "推荐" },
        { label: "大红袍" },
        { label: "绿茶" },
        { label: "铁观音" },
        { label: "普洱" },
        { label: "茶具" },
        { label: "花茶" },
      ],
      options: {
        activeColor: "#b0352f",
      },
    };
  },
  components: {
    Tabbar,
    Header,
    Swiper,
    Icons,
    Recommend,
    Like,
	Ad,
  },
};
</script>

<style scoped>
.home {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.headers {
  width: 100%;
  height: 2.88rem;
}
.headers-main {
  position: fixed;
  left: 0;
  top: 0;
}
section {
  flex: 1;
  overflow: auto;
}
::v-deep .ly-tabbar {
  box-shadow: none;
  border-bottom: none;
}
</style>
